
public class Aufgabe4 {

    /**
     * 
     * @author Christian Pysk
     * Matr.Nr: 1828317
     *
     */
    public static void main(String[] args) {
        /* a)
        switch (key) {
        case 1: I(); break;
        case 2: break;
        case 3: J();
        case 4: K(); break;
        case 5: case 6: L(); break;
        case 7: M();
        default: N();
        }
        
        Ist aequivalent zu:
        
        if (key==1) I();
        else if (key==2) {}
        else if (key==3) { J(); K();}
        else if (key==4) K();
        else if (key==5 || key==6) L();
        else if (key==7) M();
        else N();       
        
        */
        
        /* b)                           //Durchlaeufe
         
        1: int i = -1;                  //1
        2: out: while (true) {          //6
        3:  i++;                        //6
        4:  int j = -i;                 //6
        5:  if (i > 6)                  //6
        6:     break;                   //1
        7:  if (j < -3)                 //5
        8:     continue;                //3
        9:  i += 1;                     //2
       10:  in: while (i == -1) {       //2
       11      i = -1;                  //0
       12:     break out;               //0
            }
          }

        
    */
        int count1=0; int count2=0; int count3=0; int count4=0; int count5=0; int count6=0; int count7=0; int count8=0; int count9=0; int count10=0; int count11=0; int count12=0;
        int i = -1; count1++;
        out: while (true) { count2++;
            i++; count3++;
            int j = -i; count4++;
            count5++;
            if (i > 6) { count6++;
                break; }
            count7++;
            if (j < -3) { count8++;
                continue; }
            i += 1;  count9++;
            count10++;
            in: while (i == -1) { 
                i = -1; count11++;
                count12++;
                break out;
            }
        }
        System.out.println(count1 + " " + count2 + " " + count3 + " " + count4 + " " + count5 + " " + count6 + " " + count7 + " " + count8 + " " + count9 + " " + count10 + " " + count11 + " " + count12);     
        
    }
        
}
